package com.highspeed.bdk.gateway.entity;

/**
 * 一条逻辑链路对应的路由表查询的反馈包
 */
public class PortRouteItem {
    public short m_inPortId;//inportId

    public short m_dstID;//rioNetId

    public short outPorts;// 1单播,大于为多播

    public short nextHops; // 1 单播，下一跳的个数

    public short[] m_outPortIds; //用数组来保存多播，根据outports值来动态确定

    public short[] m_nextHops;//用数组来存放下一跳,根据nextHops佱来确定数组大小

    public short getM_inPortId() {
        return m_inPortId;
    }

    public void setM_inPortId(short m_inPortId) {
        this.m_inPortId = m_inPortId;
    }

    public short getM_dstID() {
        return m_dstID;
    }

    public void setM_dstID(short m_dstID) {
        this.m_dstID = m_dstID;
    }

    public short getOutPorts() {
        return outPorts;
    }

    public void setOutPorts(short outPorts) {
        this.outPorts = outPorts;
    }

    public short getNextHops() {
        return nextHops;
    }

    public void setNextHops(short nextHops) {
        this.nextHops = nextHops;
    }

    public short[] getM_outPortIds() {
        return m_outPortIds;
    }

    public void setM_outPortIds(short[] m_outPortIds) {
        this.m_outPortIds = m_outPortIds;
    }

    public short[] getM_nextHops() {
        return m_nextHops;
    }

    public void setM_nextHops(short[] m_nextHops) {
        this.m_nextHops = m_nextHops;
    }

    public PortRouteItem(short m_inPortId, short m_dstID, short outPorts, short nextHops, short[] m_outPortIds, short[] m_nextHops) {
        this.m_inPortId = m_inPortId;
        this.m_dstID = m_dstID;
        this.outPorts = outPorts;
        this.nextHops = nextHops;
        this.m_outPortIds = m_outPortIds;
        this.m_nextHops = m_nextHops;
    }
}
